package it.cncast.demo1;

public class Test {
    public static void main(String[] args){
        StringBuilder sb = new StringBuilder();
        StringBuilder sb2 = sb.append("abc");
        System.out.println("sb: " + sb);
        System.out.println("sb: " + sb2);
        System.out.println("-------------------");

        StringBuilder sb3 = new StringBuilder("abc");
        System.out.println("sb3: "+ sb3);
        System.out.println("-------------------");

        StringBuilder sb4 = new StringBuilder();
        sb4.append("学习java");
        sb4.append("到我这里");
        sb4.append("找小黑");
        System.out.println("sb4: "+ sb4);
        System.out.println("-------------------");




    }

}
